{
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->register_dnd (window);
}
+
+/**
+ * gdk_window_lookup:
+ * @anid: a native window handle
+ *
+ * Looks up the #GdkWindow that wraps the given native window handle.
+ *
+ * For example in the X backend, a native window handle is an Xlib
+ * <type>XID</type>.
+ *
+ * Return value: (transfer none): the #GdkWindow wrapper for the native
+ * window, or %NULL if there is none.
+ **/
+GdkWindow *
+gdk_window_lookup (GdkNativeWindow anid)
+{
+ return gdk_window_lookup_for_display (gdk_display_get_default (), anid);
+}
return NULL;
}
-GdkWindow*
-gdk_window_lookup (GdkNativeWindow anid)
-{
- /* Foreign windows aren't supported in Mac OS X */
- return NULL;
-}
-
GdkWindow *
gdk_window_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid)
{
return window;
}
-GdkWindow*
-gdk_window_lookup (GdkNativeWindow hwnd)
-{
- return (GdkWindow*) gdk_win32_handle_table_lookup (hwnd);
-}
-
void
_gdk_win32_window_destroy (GdkWindow *window,
gboolean recursing,
{
g_return_val_if_fail (display == _gdk_display, NULL);
- return gdk_window_lookup (anid);
+ return (GdkWindow*) gdk_win32_handle_table_lookup (hwnd);
}
void
return (GdkWindow*) gdk_xid_table_lookup_for_display (display, anid);
}
-/**
- * gdk_window_lookup:
- * @anid: a native window handle.
- *
- * Looks up the #GdkWindow that wraps the given native window handle.
- *
- * For example in the X backend, a native window handle is an Xlib
- * <type>XID</type>.
- *
- * Return value: (transfer none): the #GdkWindow wrapper for the native
- * window, or %NULL if there is none.
- **/
-GdkWindow *
-gdk_window_lookup (GdkNativeWindow anid)
-{
- return (GdkWindow*) gdk_xid_table_lookup (anid);
-}
-
static void
gdk_toplevel_x11_free_contents (GdkDisplay *display,
GdkToplevelX11 *toplevel)